﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Shop
{
    [Serializable]
    class TovarOfWeight : Tovar
    {
        public TovarOfWeight(double weight,string name, double cost, DateTime dateOfCreate, DateTime period, string placeOfCreate,
            string descriptions, double procent,int idTovar)
        {
            _weight = weight;
            _name = name;
            _cost = cost;
            _dataOfCreate = dateOfCreate;
            _period = period;
            _placeOfCreate = placeOfCreate;
            _description = descriptions;
            _id_tovar = idTovar;
            _procent = procent;
            _costOfRealization = cost + (cost * procent)/100; // цена реализации, цена запуки * процент
           
        }
        private double _weight;
        public double weight
        {
            get { return _weight; }
            set { _weight = value; }
        }
    }
}
